import org.rsbot.script.methods.Inventory;
import org.rsbot.script.wrappers.RSItem;

class VoluntaryThieve$Actions$4 extends VoluntaryThieve.Action
{
  int inventoryCount;

  VoluntaryThieve.Action.State perform()
  {
    if (this.inventoryCount == 0) {
      this.inventoryCount = VoluntaryThieve.access$4600(this.this$1.this$0).getCount();
    }
    RSItem localRSItem = VoluntaryThieve.access$4700(this.this$1.this$0).getItem(new int[] { 10075 });
    if (localRSItem == null) return VoluntaryThieve.Action.State.FAILED;

    return localRSItem.doAction("Wear") ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State finish()
  {
    if (VoluntaryThieve.access$4800(this.this$1.this$0).getCount() != this.inventoryCount) {
      VoluntaryThieve.Actions.access$4902(this.this$1, true);
      return VoluntaryThieve.Action.State.COMPLETED;
    }

    return VoluntaryThieve.Action.State.PROGRESSING;
  }
}